package com.mofeng.myshop.until;

public interface Constants {
    String FROM_PC = "P_";
    String FROM_MOTILE = "M_";
    String APP_DOWNLOAD_PATH = "/portal/app/";

    interface Order {
        String SAVE = "0";//暂存购物车
        String ERROR = "1";//交易失败
        String SUCCESS = "2";//交易完成
        String WAIT_SEND = "3";//等待发货
        String WAIT_GET = "4";//等待签收

        String NO_BLUE_PIC = "0";//不是蓝图
        String IS_BLUE_PIC = "1";//是蓝图
    }

    interface Map {
        String SEND_TYPE_STEAM_ID = "1";//STEAM_ID

        String SEND_TYPE_GAME_ID = "2";//游戏_ID
    }

    interface User {
        /*默认用户相关参数*/
        int ROLE_ROOT = 100000000; //角色：最高权限
        String ROLE_ROOT_NAME = "ROOT"; //角色：最高权限
        int ROLE_MASTER = 10000; //角色：次高权限
        String ROLE_MASTER_NAME = "站长"; //角色：次高权限
        int ROLE_ADMIN = 1000;   //角色：管理员
        String ROLE_ADMIN_NAME = "管理员";   //角色：管理员
        int ROLE_NORMAL = 1; //角色：普通用户
        String ROLE_NORMAL_NAME = "普通用户"; //角色：普通用户
        int ROLE_USER = 0; //角色：匿名用户
        String ROLE_USER_NAME = "游客"; //角色：匿名用户

        String DEFAULT_PASSWORD = "123456";
        //默认的头像
        String DEFAULT_AVATAR = "http://preview.qiantucdn.com/paixin/65/28/93/40Z58PICC9kY6E58PICnsuvEK_PIC2018.jpg!kuan320";
        String DEFAULT_MUSIC_PIC = "https://tse1-mm.cn.bing.net/th/id/OIP-C.7xhijjJxIsNnxHoghFA6NQHaEn?w=264&h=180&c=7&r=0&o=5&pid=1.7";
        String DEFAULT_SIGN = "欢迎使用,有任何疑问或者BUG提交，请联系管理员";//默认签名
        String DEFAULT_MONEY = "0.00";//默认金钱数量

        /*有关redis相关操作的键名称 前缀 */
        interface Redis {
            //邮箱验证码的KEY前缀
            String KEY_COMMENT_USER_ID = "key_comment_user_id_";//评论用户的id
            String WEB_EMAIL = "web_email_";
            String WEB_EMAIL_BUG = "web_email_bug";
            String KEY_PAGE = "key_page_";

        }

    }

    /**
     * 单位秒
     */
    interface Times {
        //基本时间
        int SECOND = 60; //分钟
        int HOUR = SECOND * 60;
        int DAY = HOUR * 24;
        int MONTH = DAY * 30;
    }

    /**
     * 状态配置
     */
    interface State {
        String DEFAULT_STATE = "0";//默认状态
        String DELETE_STATE = "1";//删除状态
        String OTHER_STATE = "2";//其他状态

//        String
    }

    /**
     * 卡密
     */
    interface Carmine {
        Integer DEFAULT_STATE = 0;//默认状态
        Integer USED_STATE = 1;//使用状态

//        String
    }

    /**
     * 网站基本配置
     */
    interface Settings {
        /*系统相关*/
        String DEFAULT_TITLE = "默认网站名";
        String ADMIN = "默认管理员名";
        String MANAGER_ACCOUNT_INIT_STATE = "manager_account_init_state";
        String FILE_UPLOAD_TYPE = "file_upload_type_";
        String WEB_TITLE = "web_title";
        String WEB_DESCRIPTION = "web_description";//
        String WEB_KEYWORDS = "web_keywords";//
        String WEB_LOGO = "web_logo";//网站logo
        String WEB_DISCOUNT = "web_discount";//网站折扣
        String WEB_INVITATION_REWARDS = "web_invitation_rewards";//邀请人奖励和新人奖励
        String WEB_NEW_USER_GIFT = "web_new_user_gift";//新人奖励
    }

    /**
     * 邮件相关配置
     */
    interface Email {
    }

    /**
     * 图片相关配置
     */
    interface ImageType {
        String PREFIX = "image/";
        String TYPE_JPG = "jpg";
        String TYPE_PNG = "png";
        String TYPE_GIF = "gif";
        String TYPE_JPEG = "jpeg";
        String TYPE_JPG_PREFIX = PREFIX + "jpg";
        String TYPE_PNG_PREFIX = PREFIX + "png";
        String TYPE_GIF_PREFIX = PREFIX + "gif";
        String TYPE_JPEG_PREFIX = PREFIX + "jpeg";
    }

    /**
     * IM相关配置
     */
    interface IM {
        interface CommentType {
            String RECEIVE_TYPE = "1"; //通讯区分接收和发送 1 接收 2 发送 3 撤回
            String SEND_TYPE = "2"; //通讯区分接收和发送 1 接收 2 发送 3 撤回
            String RECALL_TYPE = "3"; //通讯区分接收和发送 1 接收 2 发送 3 撤回
        }

        String SYSTEM_TYPE = "1"; //1 系统消息 2 私聊消息 3 群聊消息
        String PRIVATE_TYPE = "2"; //1 系统消息 2 私聊消息 3 群聊消息
        String GROUP_TYPE = "3"; //1 系统消息 2 私聊消息 3 群聊消息
        String NO_DELETE = "1"; // 1 正常 2删除
        String DELETE = "2"; //1 正常 2 删除
        String DEFAULT_DELETE = "-1"; //

        Integer OUT_TIME = 2 * Times.SECOND * 1000;
    }
}